package alp.starcode.nudtportal.framework.constant;

public enum CodeEnum {
    SUCCESS("00000", "请求成功"),
    ERROR("-1", "系统异常"),
    TOKEN_EXCEPTION("A0231", "TOKEN不能为空"),
    TOKEN_VERIFY_EXCEPTION("A0232", "TOKEN校验失败"),
    TOKEN_EXPIRE_EXCEPTION("A0233", "TOKEN已过期"),
    LOGIN_TYPE_EXCEPTION("A0234", "LOGIN_TYPE不能为空"),
    EXIST_DEVICE_LOGIN("A0235", "已在其它设备登录"),
    BIND_EXIST_DEVICE_LOGIN("A0236", "已在其它设备登录"),
    ACCESS_TOKEN_PARAM_NOTNULL("A0900", "客户端信息不能为空"),
    USER_VERIFY_ERROR("A0210", "用户登录校验失败"),
    LOGIN_EXPIRE("A0230", "用户登录已过期");

    CodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private String code;
    private String msg;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
